<?php

include_once $_SERVER['DOCUMENT_ROOT'].'/functions/bdd/init.php';

function get_avion_etapes($id) {
    $bdd = bdd_init();
    
    $rep = $bdd->prepare("SELECT * FROM etapes WHERE id_parent=? ORDER BY numero");
    $rep->execute(array($id));
    $etapes = $rep;
    
    return $etapes;
}

?>
